package com.itheima.dao;

import java.util.Date;

/**
 * 依赖注入-构造函数注入
 */
public class DIConstructor {
    public String username;
    public String password;
    public Integer year;
    public Date createdAt;

    public DIConstructor(String username, String password, Integer year, Date createdAt) {
        this.username = username;
        this.password = password;
        this.year = year;
        this.createdAt = createdAt;
    }

    @Override
    public String toString() {
        return "DIConstructor{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", year=" + year +
                ", createdAt=" + createdAt +
                '}';
    }
}
